import request from '@/utils/https'

//管理日志
export const LOG = params => request('get','api/queryAdminLog',params)

//获取验证码
export const phoneSms = params => request('get','api/passwordSms',params)

//登录获取验证码
export const registerSms = params => request('get','api/registerSms',params)

//登录后调用系统更新信息
export const loginLaterNotice = params => request('get','api/loginLaterNotice',params)

//设置下次不提醒系统更新信息
export const settingNotice = params => request('post','api/settingNotice',params)

//-------------------------------------------------------------------------------------账户与安全
//通过用户ID获取信息
export const UserIdInfo = params => request('get','api/getUserIdInfo',params)

//修改用户信息
export const updateUserIdInfo = params => request('post','api/updateUserIdInfo',params)

//-------------------------------------------------------------------------------------注册账号审核
//获取未审核用户
export const queryExamine = params => request('get','api/queryExamine',params)

//根据id审核用户
export const queryIdEditExamine = params => request('post','api/queryIdEditExamine',params)

//删除审核用户
export const deleteExamine = params => request("post",'api/deleteExamine',params)

//-------------------------------------------------------------------------------------账号管理
//查询用户信息
export const queryAdmin = params => request('get','api/queryAdmin',params)

//子账户注册
export const sonRegister = params => request('post','api/sonRegister',params)

//获取vip名称
export const queryVipName = params => request('get','api/queryVipName',params)

//获取权限名称
export const queryAuthGroup = params => request('get','api/queryAuthGroup',params)

//根据id获取子账号信息
export const queryIdAuthAdmin = params => request('get','api/queryIdAuthAdmin',params)

//修改子账户信息
export const updateAuthAdmin = params => request('post','api/updateAuthAdmin',params)

//禁用或启用用户
export const enableAuthAdmin = params => request('post','api/enableAuthAdmin',params)

//删除子账户
export const deleteAuthAdmin = params => request('post','api/deleteAuthAdmin',params)

//导出用户信息
export const exportAuthAdmin = params => request('post','api/exportAuthAdmin',params)

//导出推送日志
export const exportPushLog = params => request('post','api/exportPushLog',params)

//-------------------------------------------------------------------------------------权限设置
//获取所有权限组
export const queryAuthGroupAll = params => request('get','api/queryAuthGroupAll',params)

//根据编号获取权限信息
export const queryAuthGroupId = params => request('get','api/queryAuthGroupId',params)

//修改权限
export const updateGroup = params => request('post','api/updateGroup',params)